﻿<%@ Page Title="" Language="C#" MasterPageFile="~/KeyUnit/KeyUnit.master" AutoEventWireup="true" CodeFile="KeyUnitEdit.aspx.cs" Inherits="KeyUnit_KeyUnitEdit" StylesheetTheme="Content" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

 
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        
        .style4
        {
            width: 717px;
            height: 25px;
        }
        .style8
        {
            width: 206px;
        }
        .style9
        {
            width: 50px;
        }
        .style10
        {
            width: 630px;
        }
                
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
     <a href ='javascript:history.go(-1);'>返回</a>
        <cc1:TabContainer ID="TabContainer1" runat="server" AutoPostBack="true" 
         ActiveTabIndex="1">
            <cc1:TabPanel runat="server" HeaderText="添加单位" ID="TabPanel1">
                <HeaderTemplate>修改单位
                </HeaderTemplate>
                <ContentTemplate><table style="width: 760px; height: 726px;" ><tr><td colspan="2" class="style13">&nbsp;<asp:Label ID="lblCount" runat="server" Text="单位总数"></asp:Label></td>
                    <td class="style13" colspan="10">&nbsp;<asp:TextBox ID="txtCount" runat="server" Width="257px" 
                            Height="22px"></asp:TextBox><asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtCount"
                                    ErrorMessage="整数且必须大于0" MaximumValue="1000" MinimumValue="1" Type="Integer"></asp:RangeValidator></td>
                    </tr><tr><td colspan="2" class="style17">&nbsp;</td>
                    <td class="style17" colspan="10">
                        <asp:RadioButtonList ID="RadioButtonList2" runat="server" Height="23px" 
                            OnSelectedIndexChanged="RadioButtonList2_SelectedIndexChanged" 
                            RepeatDirection="Horizontal" Width="238px">
                            <asp:ListItem Selected="True">消防管辖</asp:ListItem>
                            <asp:ListItem>派出所管辖</asp:ListItem>
                        </asp:RadioButtonList>
                        </td></tr><tr>
                    <td colspan="2" class="style17">
                        <asp:Label ID="lblDWGM_Police" runat="server" Text="所属派出所" Visible="False"></asp:Label>
                        </td><td class="style17" colspan="10">
                            <asp:DropDownList ID="ddlPoliceStations" runat="server" Height="16px" 
                                Visible="False" Width="260px">
                            </asp:DropDownList>
                        </td>
                    </tr><tr><td colspan="2" class="style19">单位名称 </td><td colspan="5" class="style19">
                        <asp:TextBox ID="txtUnitName" runat="server" Height="23px" Width="459px"></asp:TextBox>
                        </td>
                        <td class="style19" colspan="5">
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ControlToValidate="txtUnitName" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                        </td>
                    </tr><tr><td colspan="2">完成情况 </td>
                        <td colspan="10">
                            <asp:RadioButtonList ID="RadioButtonList1" runat="server" Height="16px" 
                                onclick="rblChange()" RepeatDirection="Horizontal" Enabled="False">
                                <asp:ListItem Selected="True" Value="已完成">已完成</asp:ListItem>
                                <asp:ListItem Value="未完成">未完成</asp:ListItem>
                            </asp:RadioButtonList>
                        </td></tr><tr><td colspan="2">单位类型 </td>
                        <td colspan="10">
                            <asp:DropDownList ID="ddlUnitType" runat="server" Height="22px" 
                                Style="margin-bottom: 1px" Width="139px">
                            </asp:DropDownList>
                        </td></tr><tr><td colspan="2">重点单<br />位信息 </td>
                        <td colspan="10">
                            <asp:TextBox ID="txtUnitInfo" runat="server" Height="129px" TextMode="MultiLine"
                                    Width="639px"></asp:TextBox></td></tr><tr>
                    <td colspan="2">完成情<br />
                        况简介 </td>
                    <td colspan="10" >
                        <asp:TextBox ID="txtPerformanceInfo" runat="server" Height="140px" 
                            TextMode="MultiLine" Width="639px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style21">
                            &nbsp;</td>
                        <td class="style8">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td class="style15">
                            &nbsp;</td>
                        <td class="style16">
                            &nbsp;</td>
                        <td class="style16">
                            &nbsp;</td>
                        <td class="style18">
                            &nbsp;</td>
                        <td class="style20">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr><td class="style21">&nbsp;&nbsp;</td>
                        <td class="style8"></td>
                        <td>
                            &nbsp;&nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td class="style15">
                            &nbsp;</td>
                        <td class="style16">
                            &nbsp;</td>
                        <td class="style16">
                            &nbsp;</td>
                        <td class="style18">
                            &nbsp;</td>
                        <td class="style20">
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                        <td>
                            <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="保存" />
                        </td>
                    </tr><tr>
                    <td class="style21" align="right"  >&nbsp;&nbsp;</td><td colspan="11">重点单位类型对照表</td></tr>
                    <tr>
                        <td class="style21">
                            &nbsp;&nbsp;</td>
                        <td colspan="11">
                            &nbsp;&nbsp;<asp:DataList ID="DataList1" runat="server" Height="50px" Width="129px">
                                <ItemTemplate>
                                    <table class="style4">
                                        <tr>
                                            <td class="style9">
                                                <%# Eval("KeyUnitTypeDescript")%>
                                            </td>
                                            <td class="style10">
                                                <%# Eval("KeyUnitTypeName")%></td>
                                        </tr>
                                    </table>
                                </ItemTemplate>
                            </asp:DataList>
                        </td>
                    </tr>
                    </table>
                </ContentTemplate>
            </cc1:TabPanel>
            <cc1:TabPanel ID="TabPanel2" runat="server" HeaderText="上传图片">
                <HeaderTemplate>
                    上传图片
                </HeaderTemplate>
                    <ContentTemplate>
                    &nbsp;&nbsp;<table style="width: 699px"><tr><td class="style10" ></td>
                    <td colspan="6" style="color: #FF0000">&nbsp;</td>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                            </tr><tr>
                    <td rowspan="5" class="style10">
                        <asp:Label ID="Label1" runat="server" Text="类型："></asp:Label>
&nbsp;</td>
                    <td rowspan="5" colspan="3" >
                        <asp:RadioButtonList ID="rblImgType" runat="server" AutoPostBack=true OnSelectedIndexChanged="rblImgType_SelectedIndexChanged" Width="227px">
                            <asp:ListItem Selected="True">单位概貌</asp:ListItem>
                            <asp:ListItem>检查和整改火灾隐患</asp:ListItem>
                            <asp:ListItem>扑救初期火灾</asp:ListItem>
                            <asp:ListItem>组织引导人员疏散逃生</asp:ListItem>
                            <asp:ListItem>消防安全知识宣传教育培训</asp:ListItem>
                        </asp:RadioButtonList>
                    </td>
                    <td colspan="5">
                        <asp:Label ID="lblGM" runat="server"></asp:Label>
                    </td>
                                <td>
                                </td>
                            </tr>
                    <tr>
                        <td colspan="5">
                            <asp:Label ID="lblJC" runat="server"></asp:Label>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5">
                            <asp:Label ID="lblPJ" runat="server"></asp:Label>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5">
                            <asp:Label ID="lblZZ" runat="server"></asp:Label>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="5">
                            <asp:Label ID="lblXF" runat="server"></asp:Label>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr><td class="style10">
                        <asp:Label ID="Label2" runat="server" Text="图片："></asp:Label>
                        &nbsp;</td><td colspan="10" >
                        <input ID="fPic" name="File1" type="file" /></td></tr><tr>
                        <td class="style10">
                            <asp:Label ID="Label3" runat="server" Text="图片描述："></asp:Label>
                            &nbsp;</td>
                    <td colspan="10" class="style12" style="color: #FF0000" >
                        请选择图片说明<br />
                        <asp:DropDownList ID="ddlDescript" runat="server" Height="19px" Width="544px">
                        </asp:DropDownList>
                        </td></tr>
                    <tr>
                        <td class="style10">
                        </td>
                        <td class="style2">
                        </td>
                        <td class="style9">
                            <asp:TextBox ID="txtDescript" runat="server" CssClass="txtwidth" Height="16px" 
                                TextMode="MultiLine" Visible="False" Width="86px"></asp:TextBox>
                        </td>
                        <td class="style8" colspan="2">
                        </td>
                        <td class="style6">
                            <asp:Button ID="btnUpLoad" runat="server" CausesValidation="False" 
                                OnClick="btnUpLoad_Click" Text="保存" />
                        </td>
                        <td class="style14">
                            &nbsp;</td>
                        <td class="style4">
                            &nbsp;</td>
                        <td class="style12">
                            </td>
                        <td class="style4">
                            </td>
                        <td class="style25">
                        </td>
                    </tr>
                    <tr><td class="style10">&nbsp;&nbsp; </td><td colspan="10" >&nbsp;</td></tr></table><asp:DataList ID="DltList" RepeatColumns="4" runat="server" RepeatDirection="Horizontal"><ItemTemplate><table><tr><td><div style="border: solid 1px #CCCCCC; padding: 3px; width: 160px; height: 120px;"><a target="_blank" href='<%# Eval("PictureUrl") %>'><img src='<%# Eval("PictureUrl") %>' width="160px" height="120px" /></a> </div></td></tr><tr><td align="center"><%# Eval("PictureType")%></td></tr><tr><td align="center"><%# Eval("PictureDescript")%></td></tr><tr><td><asp:Button ID="btnImgDel" runat="server" Text="删除" ImageUrl="~/Images/Delete.gif" 
                                            CommandArgument='<%# Eval("PerformancePicID") %>' OnClientClick="return confirm('确定要删除此图片吗？')"
                                            ToolTip="删除" oncommand="btnImgDel_Command"  /></td></tr></table></ItemTemplate></asp:DataList>
                </ContentTemplate>
            </cc1:TabPanel>
            
        </cc1:TabContainer>
       
    </div>
       
    <cc1:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </cc1:ToolkitScriptManager>

</asp:Content>

